package dao;

import java.util.HashMap;

import org.w3c.dom.Document;

import utility.Util_Trading;

public class GeteBayOfficialTime_HashMap_DAO {
	
	public static HashMap<String,String> getEbayOfficialTime() {
		
		Document response = Util_Trading.sendRequest("GeteBayOfficialTime.txt", null);
			
		String time = response.getElementsByTagName("Timestamp").item(0).getChildNodes().item(0).getNodeValue();
		String ack = response.getElementsByTagName("Ack").item(0).getChildNodes().item(0).getNodeValue();
		
		HashMap<String,String> data = new HashMap<String,String>();
		
		data.put("Timestamp", time);
		data.put("Ack", ack);
		
		return data;
	}
	
}
 